package com.cheyun.netsalev3.view.orderquanyi

import android.view.View
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders
import com.cheyun.netsalev3.R
import com.cheyun.netsalev3.databinding.ActivityOrderquanyiDetailsBinding
import com.cheyun.netsalev3.utils.BaseActivity
import com.cheyun.netsalev3.utils.FunctionUtils
import com.cheyun.netsalev3.utils.InjectorUtils
import com.cheyun.netsalev3.viewmodel.aftersale.MaintenanceDetailsActivityViewModel
import com.cheyun.netsalev3.viewmodel.orderquanyi.OrderquanyiDetailsActivityViewModel
import com.jeremyliao.liveeventbus.LiveEventBus

class OrderQuanyiDetailsActivity : BaseActivity<ActivityOrderquanyiDetailsBinding>() {
    override fun initContentView(): Int {
        return R.layout.activity_orderquanyi_details
    }


    var oid = 0
    override fun initViewModel(): ViewModel? {
        if(intent.hasExtra("id")) {
            oid = intent.getIntExtra("id", 0)
        }

        var factory = InjectorUtils.getOrderquanyiDetailsActivityViewModelFactory(oid)
        return ViewModelProviders.of(this, factory).get(OrderquanyiDetailsActivityViewModel::class.java)
    }

    override fun initData() {

    }

    override fun initView() {

    }


}
